using System.IO;

namespace TmxUtil
{
    public class ResXItem
    {
        public ResX ResX;
        public string Key;
        public string Value;


        public ResXItem(ResX resX, string key, string value)
        {
            ResX = resX;
            Key = key;
            Value = value;
        }

        public string GlobalKey
        {
            get
            {
                string s1 = Path.GetFileName(this.ResX.Project.Solution.SlnFile);
                string s2 = this.ResX.Project.File;
                string s3 = this.ResX.Key;
                string s4 = this.Key;
                return string.Format("{0}:{1}:{2}:{3}", s1, s2, s3, s4);
            }
        }
    }
}